import axiosInstance from '@/api/axiosInstance'
/**
 * 用户登录
 * @param params
 */
export const loginRequest = async (params: any) => {
  return axiosInstance.post('/admin/auth/login', params)
}

/**
 * 用户注销
 */
export const logoutRequest = async () => {
  return axiosInstance.post('/admin/auth/logout')
}

/**
 * 修改基本信息
 * @param params
 */
export const updateUserInfoRequest = async (params: any) => {
  return axiosInstance.post('/admin/auth/profile', params)
}

/*
 * 修改密码
 * @param params
 */
export const changePasswordRequest = async (params: any) => {
  return axiosInstance.post('/admin/auth/change-password', params)
}
